<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title><?php echo ((isset($title) && ($title !== ""))?($title):'急救记录单'); ?></title>
    <meta name="keywords" content="<?php echo ((isset($keywords) && ($keywords !== ""))?($keywords):"keywords未定义"); ?>">
    <meta name="description" content="<?php echo ((isset($description) && ($description !== ""))?($description):"description未定义"); ?>">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Public/res/template/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/res/template/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/res/template/css/animate.css" rel="stylesheet">
    <link href="/Public/res/template/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="/Public/css/commonstyle.css" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
	
	<div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>科室列表</h5><br>
                        </div>
						<div class="ibox-content">
							<div style="padding-bottom:5px; padding-top:5px; border-bottom:#ECECEC solid 1px; margin-bottom:10px">
                                <a href="<?php echo U('Admin/Keshi/addKeshiPage');?>" class="btn btn-primary " ><i class="fa fa fa-plus"></i> 添加科室</a>
                            </div>
                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-navigation=".nopagination" data-paging="false">
                                <thead>
                                <tr>
                                    <th>科室ID</th>
                                    <th>科室</th>
                                    <th>所属医院</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php if(is_array($keshi)): foreach($keshi as $key=>$vo): ?><tr>
	                                    <td><?php echo ($vo["id"]); ?></td>
	                                    <td><?php echo ($vo["name"]); ?></td>
	                                    <td><?php echo ($vo["hospital_name"]); ?></td>
	                                    <td><a class='btn btn-xs btn-primary'' href="<?php echo U('Admin/Keshi/editKeshiPage',['id'=>$vo['id']]);?>">编辑</a></td>
	                                </tr><?php endforeach; endif; ?>
                                </tbody>
                                <tfoot>
                                <tr>
                                    <td colspan="7">
                                        <div class="pull-right"><?php echo ($Pageshow); ?></div>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>

                        </div>
                    </div>
                </div>
            </div>



    
    </div>

    <!-- 全局js -->
    <script src="/Public/res/template/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Public/res/template/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script src="/Public/res/template/js/content.js?v=1.0.0"></script>

    <!-- Peity -->
    <script src="/Public/res/template/js/plugins/peity/jquery.peity.min.js"></script>

    <!-- Peity -->
    <script src="/Public/res/template/js/demo/peity-demo.js"></script>

</body>

</html>


<script src="/Public/res/template/js/plugins/footable/footable.all.min.js"></script>

<script>
    $(document).ready(function() {

        $('.footable').footable({
        	"paging": {
				"enabled": false
				}
		});

    });

</script>